<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ page import="de.graffiti.beans.WallpaperBean"%>

<%
	WallpaperBean wp = (WallpaperBean) request.getAttribute("wallpaperBean");
%>

<html>
<head>

<f:view>
	<h:form id="link">
		<h1><h:outputText value="#{wallpaperBean.wallpaper.title}" /></h1>
	</h:form>
</f:view>

<APPLET CODE="de.graffiti.paint.PaintExample" CODEBASE="."
	ARCHIVE="graffitiApplet2.jar,lib/batik-svggen.jar,lib/batik-util.jar,lib/batik-awt-util.jar, 
lib/batik-dom.jar,lib/batik-ext.jar,lib/batik-xml.jar,lib/batik-codec.jar"
	WIDTH=800 HEIGHT=600 NAME="AppletEjbCaller">
	<param name="sessionid" value="1234">
	<param name="wallpaperid"
		value="<%=wp.getWallpaper().getWallpaperid()%>">
	<param name="contentid"
		value="<%=wp.getWallpaper().getPaintedcontentid()%>">
	<param name="contentwidth" value="<%=wp.getWallpaper().getWidth()%>">
	<param name="contentheight" value="<%=wp.getWallpaper().getHeight()%>">
	<param name="repeating" value="true">
</APPLET>
</head>

<body>

</body>
</html>
